package com.dubbo.provider.dao.db1;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

@Mapper
public interface ITransferDaoA {

    @Update("update user_money_a set money = money - #{money} where id = 1")
    int decreaseABalance(Integer money);

    @Select("select money from user_money_a where id = 1")
    Integer getABalance();

}
